-- GENERATED SPELL FOR [Unrelenting Death Knight] --


function spell0_16125(pUnit, Event) --@Shadow Mark,Self--
pUnit:FullCastSpellOnTarget(27825,pUnit)
pUnit:RegisterEvent('Sorts_16125', 15318, 1)
end

function spell1_16125(pUnit, Event) --@Summon Assistants,Self--
pUnit:FullCastSpellOnTarget(29316,pUnit)
pUnit:RegisterEvent('Sorts_16125', 634, 1)
end

function Sorts_16125(pUnit, Event)
local choix_sorts_16125 = math.random(0, 1)
if choix_sorts_16125 == 0 then
pUnit:RegisterEvent('spell0_16125', 1, 1)
end
if choix_sorts_16125 == 1 then
pUnit:RegisterEvent('spell1_16125', 1, 1)
end
end

function mob16125_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16125', math.random(1500, 3000), 1)
end

function mob16125_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16125_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16125_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16125, 1, 'mob16125_Action')
RegisterUnitEvent(16125, 2, 'mob16125_Leave')
RegisterUnitEvent(16125, 3, 'mob16125_Kill')
RegisterUnitEvent(16125, 4, 'mob16125_Die')
